package com.shen.model;

import java.util.Date;

/**
 * Author:shen
 * CreateDate:2020/6/2.
 * Function:超市会员
 */
public class Member {
    private String name;//会员名称
    private Integer cardNum;//会员卡号
    private String password;//会员密码
    private int integral;//会员积分
    private Date date;//会员开卡日期

    public Member() {
    }

    public Member(String name, Integer cardNum, String password, int integral, Date date) {
        this.name = name;
        this.cardNum = cardNum;
        this.password = password;
        this.integral = integral;
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCardNum() {
        return cardNum;
    }

    public void setCardNum(Integer cardNum) {
        this.cardNum = cardNum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Member{" +
                "name='" + name + '\'' +
                ", cardNum='" + cardNum + '\'' +
                ", password='" + password + '\'' +
                ", integral=" + integral +
                ", date=" + date +
                '}';
    }
}
